package com.huangguolin.cloud.user.entity;


import java.io.Serializable;

public class SearchUserEntity implements Serializable {
    /**
     * 用户名称
     */
    private String userName;
    /**
     * 用户昵称
     */
    private String niceName;

    private String[] userNameArray;
    private String[] niceNameArray;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNiceName() {
        return niceName;
    }

    public void setNiceName(String niceName) {
        this.niceName = niceName;
    }

    public String[] getUserNameArray() {
        return userNameArray;
    }

    public void setUserNameArray(String[] userNameArray) {
        this.userNameArray = userNameArray;
    }

    public String[] getNiceNameArray() {
        return niceNameArray;
    }

    public void setNiceNameArray(String[] niceNameArray) {
        this.niceNameArray = niceNameArray;
    }

    public void deal(){
        if(!"undefined".equals(userName) && !"".equals(userName)){
            userNameArray = userName.split(",");
        }

        if(!"undefined".equals(niceName) && !"".equals(niceName)){
            niceNameArray = niceName.split(",");
        }
    }
    @Override
    public String toString() {
        return "SearchUserEntity{" +
                "userName='" + userName + '\'' +
                ", niceName='" + niceName + '\'' +
                '}';
    }
}
